/**
 * @author Just、倾城
 * @created 2025-11-04
 * @description
 *
 */
public class TaxiA implements PricingStrategy{
    private final double pricePerKm;
    public TaxiA(double pricePerKm) {
        this.pricePerKm = pricePerKm;
    }
    @Override
    public double calculatePrice(double distance) {
        return distance * pricePerKm;
    }
}
